package com.linchong.lock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2020-12-05 23:33
 * @Description: DistributeApplication$
 */

@SpringBootApplication
@MapperScan("com.linchong.distribute.dao")
//@EnableScheduling
//@ImportResource("classpath*:redisson.xml")
public class LockApplication {

	public static void main(String[] args) {
		SpringApplication.run(LockApplication.class,args);
	}

//	@Bean(initMethod="start",destroyMethod = "close")
//	public CuratorFramework getCuratorFramework() {
//		RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);
//		CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", retryPolicy);
//		return client;
//	}
}
